﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="SetConfig.aspx.cs" Inherits="SetConfig" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link type="text/css" href="css/style.css" rel="stylesheet" />
    <script type="text/javascript" src="js/jquery.js"></script>
    <script type="text/javascript" src="js/lib.js"></script>
    <script type="text/javascript">
        function CheckInput() {
            var obj = $("#txtBaiduPage");
            if ($.isEmpty(obj.val())) {
                alert("请输入关键字抓取百度的页数！");
                name.focus();
                return false;
            }
            obj = $("#txtAccountDay");
            if ($.isEmpty(obj.val())) {
                alert("请输入每月结算的号数！");
                name.focus();
                return false;
            }
//            obj = $("#txtBaiduDay");
//            if ($.isEmpty(obj.val())) {
//                alert("请输入每月收录多少天才有提成！");
//                name.focus();
//                return false;
//            }
            obj = $("#txtNewsFirstMomey");
            if ($.isEmpty(obj.val())) {
                alert("请输入新闻源第一页排名提成金额！");
                name.focus();
                return false;
            }
            obj = $("#txtNewsSecondMomey");
            if ($.isEmpty(obj.val())) {
                alert("请输入新闻源第二页排名提成金额！");
                name.focus();
                return false;
            }
            obj = $("#txtLinkFirstMomey");
            if ($.isEmpty(obj.val())) {
                alert("请输入外链第一页排名提成金额！");
                name.focus();
                return false;
            }
            obj = $("#txtLinkSecondMomey");
            if ($.isEmpty(obj.val())) {
                alert("请输入外链第二页排名提成金额！");
                name.focus();
                return false;
            }
            obj = $("#txtOurWebMomey");
            if ($.isEmpty(obj.val())) {
                alert("请输入站内提成！");
                name.focus();
                return false;
            }
            obj = $("#txtLockNumber");
            if ($.isEmpty(obj.val())) {
                alert("请输入关键字在百度首页出现多少个则锁定！");
                name.focus();
                return false;
            }
            return true;
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
   <div id="conBox">
        <div class="grid-box" style="padding-top: 10px">
            <table class="form-table">
                <thead>
                    <tr>
                        <td colspan="3">系统配置
                        </td>
                    </tr>
                </thead>
                <tbody>
                 <tr class="tr1">
                         <td style="padding-left:10px">
                            每个关键字抓取百度的页数为<asp:TextBox ID="txtBaiduPage" runat="server" CssClass="txtbox" Width="30"></asp:TextBox>页
                        </td>
                    </tr>
                    <tr class="tr1">
                         <td style="padding-left:10px">
                            网编文章收录在每个月<asp:TextBox ID="txtAccountDay" runat="server" CssClass="txtbox" Width="30"></asp:TextBox>号结算<%--一个月内有过<asp:TextBox ID="txtBaiduDay" runat="server" CssClass="txtbox" Width="30"></asp:TextBox>天收录则提成--%>
                        </td>
                    </tr>
                    <tr>
                        <td style="padding-left:10px">
                           新闻源提成：首页排名每篇<asp:TextBox ID="txtNewsFirstMomey" runat="server" CssClass="txtbox" Width="30"></asp:TextBox>元，第二页排名每篇<asp:TextBox ID="txtNewsSecondMomey" runat="server" CssClass="txtbox" Width="30"></asp:TextBox>元
                        </td>
                    </tr>
                    <tr class="tr1">
                        <td style="padding-left:10px">
                           外链提成：首页排名每篇<asp:TextBox ID="txtLinkFirstMomey" runat="server" CssClass="txtbox" Width="30"></asp:TextBox>元，第二页排名每篇<asp:TextBox ID="txtLinkSecondMomey" runat="server" CssClass="txtbox" Width="30"></asp:TextBox>元
                        </td>
                    </tr>
                    <tr>
                        <td style="padding-left:10px">
                           站内提成：只要有收录则每篇<asp:TextBox ID="txtOurWebMomey" runat="server" CssClass="txtbox" Width="30"></asp:TextBox>元
                        </td>
                    </tr>
                    <tr class="tr1">
                        <td style="padding-left:10px">
                          每天关键字在百度首页总数大于等于<asp:TextBox ID="txtLockNumber" runat="server" CssClass="txtbox" Width="30"></asp:TextBox>则自动锁定
                        </td>
                    </tr>
                    <tr>
                        <td style="padding-left:10px">
                            <asp:Button ID="btnSubmit" runat="server" Text="提 交" CssClass="button" OnClick="btnSubmit_Click"
                                OnClientClick="return CheckInput()" />
                        </td>
                    </tr>
                </tbody>
            </table>
        </div>
    </div>
    </form>
</body>
</html>
